package com.log4j.demo;

import org.apache.log4j.Level;
import org.apache.log4j.LogManager; 
import org.apache.log4j.Logger; 


public class LogTest {
	private static Logger logger = LogManager.getLogger(LogTest.class);  

    /** 
     * @param args 
     */  
    public static void main(String[] args) {  
        System.out.println("This is println message.");  

        //logger.entry(); 
        
        // 记录debug级别的信息  
        logger.debug("This is debug message."); 
        
	    // 记录info级别的信息  
        logger.info("This is info message.");  

        // 记录error级别的信息  
        logger.error("This is error message");  

        
        
        //logger.exit(); 
    }  

}